//
//  UIImageView+adapt.m
//  唯美图
//
//  Created by lanou3g on 15-4-3.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "UIImageView+adapt.h"

@implementation UIImageView (adapt)

- (void)adaptView
{
    [self setContentScaleFactor:[[UIScreen mainScreen] scale]];
    self.contentMode =  UIViewContentModeScaleAspectFill;
    self.autoresizingMask = UIViewAutoresizingFlexibleHeight;
    self.clipsToBounds  = YES;
}

- (void)adaptViewWidth
{
    [self setContentScaleFactor:[[UIScreen mainScreen] scale]];
    self.contentMode =  UIViewContentModeScaleAspectFill;
    self.autoresizingMask = UIViewAutoresizingFlexibleWidth;
    self.clipsToBounds  = YES;
}

@end
